#pragma once
#include <string>

// 加载配置

class Config {
public:
    static std::string DB_HOST;
    static std::string DB_USER;
    static std::string DB_PASSWORD;
    static std::string DB_NAME;
    static int SERVER_PORT;
    static std::string UPLOAD_PATH;

    // +++ [新增] OSS 配置项 +++
    static std::string OSS_ENDPOINT;
    static std::string OSS_BUCKET_NAME;

    // +++ [新增] 临时上传目录
    static std::string UPLOAD_TEMP_PATH; 

    // +++ [新增] RabbitMQ 配置 +++
    static std::string RABBITMQ_URI;
    static std::string RABBITMQ_EXCHANGE;
    static std::string RABBITMQ_QUEUE;
    static std::string RABBITMQ_ROUTING_KEY;

    static bool load(const std::string& configFile = "config/app.conf");
};
